package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.dto.DishDTO;
import com.itheima.entity.Dish;

import java.util.List;

/**
 * @author ding
 * @version
 * @description: TODO 菜品管理
 * @date 2022/6/5 14:50
 */
public interface DishService {
    Page<Dish> page(Integer page, Integer pageSize, String name);

    int save(DishDTO dishDTO);


    List<DishDTO> findByCategoryId(Long categoryId, String name);

    DishDTO findById(Long id);

    int update(DishDTO dishDTO);

    int deleteByIds(Long[] ids);

    void updateStatusByIds(Integer status, Long[] ids);
}
